package com.dmg;

import com.dmg.dao.PeiZhiMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

//@MapperScan(basePackages = {"com.dmg.dao"})
@SpringBootApplication
//如果使用多数据源 需要排除自动配置的数据源 否则会一直找主库
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class DuozuhuApplication {

    @Autowired
    private PeiZhiMapper peiZhiMapper;

    public static void main(String[] args) {
        SpringApplication.run(DuozuhuApplication.class, args);
    }


}
